package router

import (
	"go-mall/api/controller"

	"github.com/gin-gonic/gin"
)

func registerBuildingRoutes(rg *gin.RouterGroup) {
	g := rg.Group("/building/")
	g.GET("ping", controller.TestPing)
	g.GET("config-read", controller.TestConfigRead)
	g.GET("logger-test", controller.TestLogger)
	g.POST("access-log-test", controller.TestAccessLog)
	g.GET("panic-log-test", controller.TestPanicLog)
	g.GET("customized-error-test", controller.TestAppError)
	g.GET("response-obj", controller.TestResponseOjb)
	g.GET("response-list", controller.TestResponseList)
	g.GET("response-error", controller.TestResponseError)

	g.GET("gorm-logger-test", controller.TestGormLogger)
	g.POST("create-demo-order", controller.TestCreateDemoOrder)

	g.GET("httptool-get-test", controller.TestHttpToolGet)
	g.GET("httptool-post-test", controller.TestForHttpToolPost)
}
